package com.zhuhjay.ucenter.service;

import com.zhuhjay.ucenter.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuhjay.ucenter.entity.vo.RegisterVo;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author ZhuHJay
 * @since 2022-09-08
 */
public interface MemberService extends IService<Member> {
    /**
     * 登录并返回token
     * @param member
     * @return
     */
    String login(Member member);

    /**
     * 注册会员
     * @param registerVo
     */
    void register(RegisterVo registerVo);

    /**
     * 获取会员信息，根据id
     * @param id
     * @return
     */
    Member getInfoById(String id);

    /**
     * 获取指定时间的注册人数
     * @param day
     * @return
     */
    Long getRegisterCountByDay(String day);
}
